import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Login from '../views/login'
import RecoveryPlan from '../views/recovery/recovery_plan.vue'
import RecoveryRegister from '../views/recovery/recovery_register.vue'

Vue.use(VueRouter)

const routes = [
	{
		path:'/',
		name:'Login',
		component:Login
	},
	{
		path: '/home',
		name: 'Home',
		component: Home,
		children:[
			{
				path:'/plan',
				name:'RecoveryPlan',
				component:RecoveryPlan
			},{
				path:'/register',
				name:'RecoveryRegister',
				component:RecoveryRegister
			},
			{
				path:'/staff',
				name:'StaffList',
				component: () => import('@/views/staff')
			},
			{
				path:'/nursinglevel',
				name:'Nursinglevel',
				component: () => import('@/views/nursinglevel')
			},
			{
				path:'/nursingconten',
				name:'Nursingconten',
				component: () => import('@/views/nursingconten')
			},
			{
				path:'/nursingr',
				name:'Nursingr',
				component: () => import('@/views/nursingr')
			},
			{
				path:'/bed',
				name:'Bed',
				component: () => import('@/views/bed')
			},{
				path:'/patient',
				name:'Patient',
				component:() =>import('@/views/patients/patient.vue')
			},{
				path:'/out',
				name:'out',
				component:()=>import('@/views/patients/out.vue')
			},
			{
				path:'/exit',
				name:'exit',
				component:()=>{'@/views/patients/exit.vue'}
			},{
				path:'/meal',
				name:"Meal",
				component: ()=>import('../views/meal_calendar/index.vue')
			},
			{
				path:'/distribute',
				name:"Distribute",
				component: ()=>import('../views/distribute/index.vue')
			},{
				path:'/steward',
				name:"Steward",
				component: ()=>import('../views/steward/index.vue')
			}
		]
			
		
	}
]

const router = new VueRouter({
  routes
})

export default router
